package com.chaoxin.lovehelp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chaoxin.lovehelp.common.utils.PageUtils;
import com.chaoxin.lovehelp.entity.RecipientEntity;
import com.chaoxin.lovehelp.common.enums.vo.activityRecipientVo;
import com.chaoxin.lovehelp.common.enums.vo.allRecipientVo;
import com.chaoxin.lovehelp.common.enums.vo.recipientSelectVo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author honghu
 * @email 3027708213@qq.com
 * @date 2024-02-04 22:13:14
 */
public interface RecipientService extends IService<RecipientEntity> {
    //获取列表
    PageUtils queryPage(Map<String, Object> params, HttpServletRequest request);
    //获取某个类别的受助者人数
    Integer getPersonsNum(Integer id);
    //删除
    void removeIds(List<Integer> list);
    //获取某个会员对接的受助者人数
    int getHelpNum(Integer id);

    //获取某个会员对接的所有受助者
    List<allRecipientVo> getHelpPeople(HttpServletRequest request, Integer id);

    //根据id返回受助者信息
    activityRecipientVo getRecipentInfos(Integer id);
    //获取单个受助者信息
    allRecipientVo getRecipientVo(Integer id);
    //初始化受助者下拉框
    List<recipientSelectVo> getAllRecipient(HttpServletRequest request);

}

